package com.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-04-16 21:05
 */
@Component
@Data
@ConfigurationProperties(prefix = "gulimall.thread")        // 自定义配置文件属性并加入到容器中，方便配置直接使用
public class ThreadPoolConfigProperties {
    private Integer coreSize;
    private Integer maxSize;
    private Integer keepAliveTime;
}
